package GUI;
/**
 * A blank librarian main that contains all it's panels.
 * @author Benny
 *
 */
public class LibrarianMainScreen {
	
	  public MainFrame mf;
	  public BookReturnGUI bookReturn;
	  public RegisterNewUser registerNewUser;
	  public SearchBookGUI searchBook;
	  public BookBorrowGUI bookBorrow;
	  public ViewUserCardLibrarianGUI viewUser;
	  public ManualExtendBookGUI manualExtend;
	  public AddBookToStockGUI addBook;
		 /**
		  * Create the librarian main screen panel. 	  
		  * @param M Instance of the main Frame of the program 
		  */
	  public LibrarianMainScreen(MainFrame M){
		 
		 
		 this.mf=M;
		 registerNewUser= new RegisterNewUser(M);
		 registerNewUser.setBounds(0, 0, 620, 580);
		 mf.getContentPane().add(registerNewUser);
		 
		 bookReturn= new BookReturnGUI(M);
		 bookReturn.setBounds(0, 0, 620, 580);
		 mf.getContentPane().add(bookReturn);

		 searchBook= new SearchBookGUI(M);
		 searchBook.setBounds(0, 0, 620, 580);
		 mf.getContentPane().add(searchBook);
		 
		 bookBorrow= new BookBorrowGUI(M);
		 bookBorrow.setBounds(0, 0, 620, 580);
		 mf.getContentPane().add(bookBorrow);
		 
		 manualExtend= new ManualExtendBookGUI(M);
		 manualExtend.setBounds(0, 0, 620, 580);
		 mf.getContentPane().add(manualExtend);
		 
		 viewUser= new ViewUserCardLibrarianGUI(M);
		 viewUser.setBounds(0, 0, 620, 580);
		 mf.getContentPane().add(viewUser);
		 
		 addBook= new AddBookToStockGUI(M);
		 addBook.setBounds(0, 0, 620, 580);
		 mf.getContentPane().add(addBook);

		 viewUser.setVisible(false);
		 manualExtend.setVisible(false);
		 bookBorrow.setVisible(false);
		 searchBook.setVisible(false);
		 bookReturn.setVisible(false);
		 registerNewUser.setVisible(false);
		 addBook.setVisible(false);
	 } 
}
